<?php
add_action( 'init', 'sxph' );
function sxph() {
	$labels = array(
				'name' => __( 'SX_PH' ),
				'singular_name' => __( 'product_release' ),
				'add_new' => _x('Add New', 'product_release'),
				'add_new_item' => __('Add New '),
				'edit_item' => __('Edit product_release'),
				'new_item' => __('New product_release'),
				'view_item' => __('View product_release'),
				'search_items' => __('Search product_release')
			);
   $args = array(
			'labels' => $labels,
    		'public' => true,
    		'publicly_queryable' => true,
    		'has_archive' => true,
    		'hierarchical' => false,
    		'taxonomies' => array('product', 'release', 'country'),
    		'supports' => array( 'title', 'editor', 'author',  'comments', 'custom-fields', 'cats')
		);
	register_post_type( 'sxph',$args);    
}

function taxonomyc ()
{
   register_taxonomy('country', 'sxph', 
                        array(
                    		'labels' => array(
                                    		'name'              => _x( 'country', 'taxonomy general name' ),
                                    		'singular_name'     => _x( 'country', 'taxonomy singular name' ),
                                    		'search_items'      => __( 'Search country Categories' ),
                                    		'all_items'         => __( 'All country Categories' ),
                                    		'parent_item'       => __( 'Parent country Category' ),
                                    		'parent_item_colon' => __( 'Parent country Category:' ),
                                    		'edit_item'         => __( 'Edit country Category' ),
                                    		'update_item'       => __( 'Update country Category' ),
                                    		'add_new_item'      => __( 'Add New country Category' ),
                                    		'new_item_name'     => __( 'New country Category' ),
                                    		'menu_name'         => __( 'country' ),
                                    	),
                    		'hierarchical' 	=> true,
                    		'public'		=> true,
                    		'query_var'		=> 'country',
                    		'rewrite'		=>  array('slug' => 'country' ),
                    		'_builtin'		=> false,
                    	));  
}
add_action( 'init', 'taxonomyc', 0 );